﻿using UnityEngine;
public class Music : MonoBehaviour {

	public AudioClip music1;
	public AudioClip music2;
	public AudioSource music;
	// Use this for initialization
	void Start () {
		music = transform.GetComponent<AudioSource> ();
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void Music1Play()
	{
		music.clip = music1;
		music.Play ();
	}
	void Music2Play()
	{
		music.clip = music2;
		music.Play ();
	}
}
